﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DR_StatusSummaryUserControl.ascx.cs" Inherits="TRIG_MOD_STATUSSUMMARY.DR_StatusSummary.DR_StatusSummaryUserControl" %>

<link rel="Stylesheet" type="text/Css" href="/_layouts/TRIG_MOD_STATUSSUMMARY/tce.css" />

<asp:UpdatePanel ID="uptStSumError" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Label ID="errorMessage" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="x" runat="server">
    <ContentTemplate>
        <asp:RadioButtonList ID="rdDates" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rdDates_SelectedIndexChanged2"
            AutoPostBack="true">
            <asp:ListItem Value="1">Periods</asp:ListItem>
            <asp:ListItem Selected="true" Value="0">As of Today</asp:ListItem>
        </asp:RadioButtonList>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <SharePoint:DateTimeControl runat="server" ID="stDT" DateOnly="true" IsRequiredField="true" />
                </td>
                <td>
                    <SharePoint:DateTimeControl runat="server" ID="endDT" DateOnly="true" Visible="false" />
                    <%--<asp:CompareValidator ID="cv" runat="server" Display="Dynamic" ForeColor="red" Type="Date"
                        Operator="LessThan" ControlToCompare="stDT$stDTDate" ControlToValidate="endDT$endDTDate">*</asp:CompareValidator>--%>
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="rdDates" />
    </Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnProcessDR" runat="server" Text="Get Summary" 
                        onclick="btnProcessDR_Click"  />
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="uptStSumGrid" runat="server">
    <ContentTemplate>
        <asp:GridView ID="stSumGrid" runat="server" AutoGenerateColumns="true" AllowPaging="True"
            AlternatingRowStyle-CssClass="alt" CommandRowStyle-CssClass="ftr" CssClass="grid"
            EditRowStyle-CssClass="EditRowStyle" EnableModelValidation="True" FieldHeaderStyle-CssClass="hdr"
            GridLines="None" PagerStyle-CssClass="pgr" PageSize="50" RowStyle-CssClass="mGridRowStyle"
            SelectedRowStyle-CssClass="SelectedRowStyle">
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>

